package com.redis.nxj.service.impl;

import com.redis.nxj.dao.PetDao;
import com.redis.nxj.pojo.Pet;
import com.redis.nxj.service.PetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ningxinjie
 * @date 2021/3/29
 */
@Service
public class PetServiceImpl implements PetService {
    @Autowired
    PetDao petDao;

    @Override
    public List<Pet> queryAllPet() {
        return petDao.queryAllPet();
    }

    @Override
    public int delPetById(Integer id) {
        return petDao.delPetById(id);
    }
}
